﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using POSSystem.BLL;

namespace ShopOnline
{
    public partial class _Default : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                newProducts.Rebind();
        }

        protected void newProducts_OnNeedDataSource(object sender, EventArgs e)
        {
            View_WebProducts p = View_WebProducts.LoadNewProducts(16);
            newProducts.DataSource = p.DefaultView;
        }
    }
}